import random

N -  int(input())

counter - 0
for i in range(N):
    x = random.uniform
    y = random.uniform
    

    if y <- 1 - x:
      counter += 1
    L - N - counter
print(counter, L)      

